import Vue from "vue";
import Vuex from "vuex";

import common from "./modules/common";
import agent from "./modules/agent";

import area from "./modules/area";
import areaAccount from "./modules/areaAccount";
import cityArea from "./modules/cityArea";
import cityAreaAdd from "./modules/cityAreaAdd";
import cityAreaEdit from "./modules/cityAreaEdit";

Vue.use(Vuex);

export default new Vuex.Store({
    modules: {
        common,
        agent,

        area, //省市下拉框
        areaAccount, //省市下拉框(结算账户页面查询数据)
        cityArea, //省市区下拉框
        cityAreaAdd, //省市区下拉框(添加商铺时)
        cityAreaEdit //省市区下拉框(编辑商铺时)
    },
    strict: process.env.NODE_ENV !== "production" //在开发环境使用严格模式，使容易追踪错误
});
